<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>箭头函数</title>
</head>
<body>
  
  <script>
    setTimeout(() => {
      arguments
      console.log("123123");
    }, 1000);

    setInterval(() => {
      console.log(3333);
    }, 10000);

    var nums = [20,13,24,53,12]
    var result = nums.filter(item => item % 2 === 0)
                    .map(item => item * item)
                    .reduce((prevVal, item) => prevVal + item)
    console.log(result);
  </script>
</body>
</html>